package cn.wolfcode.consumerdemo2;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Description: 异步请求消费者
 * @Author: 伍家钰
 * @Date: 2020/9/4 10:54
 * @Version: 1.0
 */
@Component
@RocketMQMessageListener(
        topic = "04-boot-hello",
        consumerGroup = "wolfcode-boot-one"
)
public class OneWayConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println("消费成功" + s);
    }
}
